<%@ include file="/WEB-INF/jsp/includes.jsp" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"  %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>浙江孵化器在线后台管理系统---报表管理---主产品经济指标完成状况列表</title>
    <link href="<spring:url value="/static/style/index.css" htmlEscape="true" />" rel="stylesheet" type="text/css">
</head>
<body>
<div class="list_right_title">
    <span><img src="<spring:url value="/static/images/infor_enter_icon.jpg" htmlEscape="true" />" alt="组列表"></span>报表管理>主产品经济指标完成状况列表
</div>
<div class="list_right_table_title">
    <div class="list_right_table_title_form">
        <form:form method="post" action="listKeyEconomyPropFinishStatuss" name="multiplyActionForm"
                   id="multiplyActionForm">        
            <input type="hidden" name="selectedKeyEconomyPropFinishStatusIDArray" id="selectedKeyEconomyPropFinishStatusIDArray"/>
            <input type="submit" value="  删除  " onclick="return checkSelectedKeyEconomyPropFinishStatuss(this.form)"/>
            <input type="button" value="　添加　" onclick="window.location.href='manageKeyEconomyPropFinishStatus'">
            姓名： <input type="text" name="searchKeyName">
            <input type="submit" value="　查询　"/>
        </form:form>
    </div>
    <%@ include file="/WEB-INF/jsp/management/common/pagebar.jsp" %>
</div>
<div class="table_box">
    <table class="table" cellspacing="0" cellpadding="0" summary="报表管理>主产品经济指标完成状况列表">
        <tr>
            <th nowrap width="2%" align="center">
                <input type="checkbox" id="fatherControlCB" onclick='selectAll()'/>
            </th>
				<th width="12%">企业名称</th>
			<th width="22%" >季度</th>
				<%--	<th width="12%">产量</th>--%>
				<th width="12%">利润</th>
				<th width="15%">利率</th>
				<th width="10%">出口率</th>
            <th nowrap width="15%" style="border-right:#ffffff 1px solid;">操作</th>
        </tr>
        <c:forEach var="keyEconomyPropFinishStatus" items="${page.result}">
            <tr>
                <td align="center" nowrap><input name="keyEconomyPropFinishStatusIndex" type="checkbox" value="${keyEconomyPropFinishStatus.id}"/></td>
                <td nowrap>${keyEconomyPropFinishStatus.enterprise.name}</td>
                 <td align="center" nowrap>${keyEconomyPropFinishStatus.countYear}年-${keyEconomyPropFinishStatus.countQuarter}季度</td>
                <td align="center" nowrap>${keyEconomyPropFinishStatus.profit}</td>
                <td align="center" nowrap>${keyEconomyPropFinishStatus.tax}</td>
                <td nowrap align="center">${keyEconomyPropFinishStatus.exportRate}</td>
                <td align="center" nowrap>
                    <div class="image">
                        <a href="manageKeyEconomyPropFinishStatus?keyEconomyPropFinishStatusID=${keyEconomyPropFinishStatus.id}">编辑</a>
                    </div>
                </td>
            </tr>
        </c:forEach>
    </table>
</div>
<div class="list_right_table_title">
    <div class="list_right_table_title_form">
        <form:form method="post" action="listKeyEconomyPropFinishStatuss" name="multiplyActionForm2"
                   id="multiplyActionForm2">
            <input type="hidden" name="selectedKeyEconomyPropFinishStatusIDArray" id="selectedKeyEconomyPropFinishStatusIDArray2"/>
                <input type="submit" value="  删除  " onclick="return checkSelectedKeyEconomyPropFinishStatuss(this.form)"/>
                <input type="button" value="　添加　" onclick="window.location.href='manageKeyEconomyPropFinishStatus'">
                姓名： <input type="text" name="searchKeyName">
                <input type="submit" value="　查询　"/>
            </form:form>
        </div>
        <%@ include file="/WEB-INF/jsp/management/common/pagebar.jsp" %>
    </div>
    </body>
    <script type="text/javascript">
        function getSelectedKeyEconomyPropFinishStatuss() {
            var allSelectedKeyEconomyPropFinishStatuss = new Array();
            var allChkBoxes = document.getElementsByName("keyEconomyPropFinishStatusIndex");
            if (allChkBoxes != null)
                for (var i = 0,j = 0; i < allChkBoxes.length; i++) {
                    if (allChkBoxes[i].checked == true)
                        allSelectedKeyEconomyPropFinishStatuss[j++] = allChkBoxes[i].value;
                }
            return  allSelectedKeyEconomyPropFinishStatuss;
        }

        function checkSelectedKeyEconomyPropFinishStatuss(formObj) {
            var selectedKeyEconomyPropFinishStatuss = getSelectedKeyEconomyPropFinishStatuss();
            if (selectedKeyEconomyPropFinishStatuss == null || selectedKeyEconomyPropFinishStatuss.length < 1) {
                alert("没有选中项！");
                return false;
            } else {
                var result = window.confirm("你确信要删除所有选中项么?")
                if (!result) {
                    return false
                }
                formObj.action = "deleteKeyEconomyPropFinishStatuss";
                document.getElementById("selectedKeyEconomyPropFinishStatusIDArray").value = selectedKeyEconomyPropFinishStatuss;
                document.getElementById("selectedKeyEconomyPropFinishStatusIDArray2").value = selectedKeyEconomyPropFinishStatuss;
                return true;
            }
        }

    function selectAll() {
        var allChkBoxes = document.getElementsByName("keyEconomyPropFinishStatusIndex");
        if (document.getElementById("fatherControlCB").checked) {
            for (var i = 0,j = 0; i < allChkBoxes.length; i++) {
                if (allChkBoxes[i].checked == false) {
                    allChkBoxes[i].checked = true;
                }
            }
        }
        else {
            for (var i = 0,j = 0; i < allChkBoxes.length; i++) {
                if (allChkBoxes[i].checked == true) {
                    allChkBoxes[i].checked = false;
                }
            }
        }
    }
</script>

</html>